/**
 * 
 */
package com.orange.handler.expert.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.dbhelp.page.Page;
import com.orange.handler.expert.AuthExamService;
import com.orange.modules.dao.expert.AuthExamRepository;
import com.orange.modules.entity.expert.AuthExam;

/**
 * @author gaogs
 *
 * 2016-11-30
 */
@Service
public class AuthExamServiceImpl implements AuthExamService {

	@Autowired
	private AuthExamRepository authExamRepository;
	
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamService#saveAuthExamInfo(com.orange.modules.entity.expert.AuthExam)
	 */
	@Override
	public void saveAuthExamInfo(AuthExam a) {
		authExamRepository.saveAuthExamInfo(a);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamService#deleteAuthExamInfo(java.lang.String)
	 */
	@Override
	public void deleteAuthExamInfo(String pid) {
		authExamRepository.deleteAuthExamInfo(pid);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamService#queryAuthExamInfo(java.lang.String)
	 */
	@Override
	public AuthExam queryAuthExamInfo(String pid) {
		AuthExam a=authExamRepository.queryAuthExamInfo(pid);
		return a;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamService#queryAuthExamInfoByName(java.lang.String)
	 */
	@Override
	public AuthExam queryAuthExamInfoByName(String name) throws SQLException {
		AuthExam a=authExamRepository.queryAuthExamInfoByName(name);
		return a;
	}

	@Override
	public Page<AuthExam> queryAuthExamPage(Map<String, String> map)
			throws SQLException {
		Page<AuthExam> ps=authExamRepository.queryAuthExamPage(map);
		return ps;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamService#queryAuthExamListByTask(java.lang.String, java.lang.String)
	 */
	@Override
	public List<AuthExam> queryAuthExamListByTask(String taskId,String major, String subject)
			throws SQLException {
		List<AuthExam> ls=authExamRepository.queryAuthExamListByTask(taskId,major, subject);
		return ls;
	}

}
